package com.xw.childhealth.dao;

import com.xw.childhealth.entity.JieduanKnowledge;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Description:
 * @Author: y
 * @CreateDate: 2019-11-13 11:23
 * @Version: 1.0
 */
public interface JieduanKnowledgeDao extends JpaRepository<JieduanKnowledge, Integer> {


    List<JieduanKnowledge> findByParentIdEquals(Integer id);

    JieduanKnowledge findByIdEquals(Integer id);

//    JieduanKnowledge findByInformationEquals(String information);

    List<JieduanKnowledge> findByInformationEquals(String msg);
}
